/**
 * Created by Cloud on 2016/4/11.
 */
var dao = require("./execsql.js");

exports.randoms=function (req,res){
    /*调用公共的到层中封装的sql*/
    /**/
    //console.log(1);
    var sql=" SELECT article_title,shop_address,image_src FROM hc_infomation a1 JOIN hc_infoimgs_reference a2 ON a1.article_id=a2.article_id JOIN hc_images im ON a2.image_id=im.image_id LIMIT 6";
    dao.poolGetConnection(sql,res);
};